<!-- 基础配置 -->
<template>
  <a-card
    style="width: 100%"
    :tab-list="tabListNoTitle"
    :active-tab-key="titleKey"
    @tabChange="key => onTabChange(key)"
  >
    <div v-if="titleKey === 'inner'">
      <InnerConfig />
    </div>
    <template v-else-if="titleKey === 'cooperate'">
      <CooperateConfig />
    </template>
  </a-card>
</template>

<script>
import InnerConfig from './components/innerConfig.vue'
import CooperateConfig from './components/cooperateConfig.vue'
export default {
  components: {
    InnerConfig,
    CooperateConfig
  },
  data() {
    return {
      tabListNoTitle: [
        {
          key: 'inner',
          tab: '会内资源配置'
        },
        {
          key: 'cooperate',
          tab: '合作资源配置'
        }
      ],
      titleKey: 'inner'
    }
  },
  computed: {},
  watch: {},
  methods: {
    onTabChange(key) {
      this.titleKey = key
    }
  },
  created() {},
  mounted() {}
}
</script>
<style scoped></style>
